package com.tiantian.novel.service;

import com.tiantian.novel.model.NovelSummary;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;


/**
 * SinaBlog Service
 *
 * @author wangk21
 * @date 2023/11/26.
 */
@Slf4j
@RequiredArgsConstructor
@Service
public class SinaBlogService {
    /**
     * 抓取标题中包含指定关键字的文章
     *
     * @param url      url
     * @param keywords keywords
     *
     * @return NovelSummary
     */
    public NovelSummary fetch(String url, String keywords) {
        log.info("fetch {},keywords={}", url, keywords);
        // 开篇
        // https://blog.sina.com.cn/s/blog_486e105c010003nt.html
        return null;
    }
}
